Skip to content

8387471: Reduce size of web fonts included in API documentation - #32058

Open
hns wants to merge 1 commit into
openjdk:masterfrom
hns:JDK-8387471
Open

8387471: Reduce size of web fonts included in API documentation#32058
hns wants to merge 1 commit into
openjdk:masterfrom
hns:JDK-8387471

Conversation

@hns

@hns hns commented Jul 27, 2026

Copy link
Copy Markdown
Member

Please review a change to reduce the size of web fonts included with API documentation bundles while preserving support for character ranges used by the vast majority bundles. The following steps are taken to reduce the size of bundled web fonts from 4 MB before the change to roughly 930 kb.

  • Drop support for for WOFF format, since the newer WOFF2 format is widely supported by modern web browsers. Since WOFF2 uses improved compression, this removes more than 50% of the original file size.
  • Limit web fonts to a subset of characters commonly used in API documentation. This leaves out special characters such as dingbats, emojis, shapes, tiles and pictograms that are better covered by system fonts.

Generally, web browsers fall back to system fonts on a per-character basis, so there is no loss of functionality as long as system fonts provide good Unicode support.

This change also removes the console warnings seen in Firefox and possibly other browsers by recalculating the bounding boxes of converted web fonts.



Progress

  • Change must be properly reviewed (1 review required, with at least 1 Reviewer)
  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue

Issue

  • JDK-8387471: Reduce size of web fonts included in API documentation (Bug - P4)

Reviewers

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/32058/head:pull/32058
$ git checkout pull/32058

Update a local copy of the PR:
$ git checkout pull/32058
$ git pull https://git.openjdk.org/jdk.git pull/32058/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 32058

View PR using the GUI difftool:
$ git pr show -t 32058

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/32058.diff

Using Webrev

Link to Webrev Comment

@bridgekeeper

bridgekeeper Bot commented Jul 27, 2026

Copy link
Copy Markdown

👋 Welcome back hannesw! A progress list of the required criteria for merging this PR into master will be added to the body of your pull request. There are additional pull request commands available for use with this pull request.

@openjdk

openjdk Bot commented Jul 27, 2026

Copy link
Copy Markdown

@hns This change now passes all automated pre-integration checks.

ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details.

After integration, the commit message for the final commit will be:

8387471: Reduce size of web fonts included in API documentation

Reviewed-by: liach, ayang

You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed.

At the time when this comment was updated there had been 4 new commits pushed to the master branch:

As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details.

➡️ To integrate this PR with the above commit message to the master branch, type /integrate in a new comment.

@openjdk openjdk Bot added the javadoc javadoc-dev@openjdk.org label Jul 27, 2026
@openjdk

openjdk Bot commented Jul 27, 2026

Copy link
Copy Markdown

@hns The following label will be automatically applied to this pull request:

  • javadoc

When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing list. If you would like to change these labels, use the /label pull request command.

@openjdk openjdk Bot added the rfr Pull request is ready for review label Jul 27, 2026
@mlbridge

mlbridge Bot commented Jul 27, 2026

Copy link
Copy Markdown

Webrevs

@liach liach left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks reasonable.

@openjdk openjdk Bot added the ready Pull request is ready to be integrated label Jul 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

javadoc javadoc-dev@openjdk.org ready Pull request is ready to be integrated rfr Pull request is ready for review

Development

Successfully merging this pull request may close these issues.

3 participants